<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>粒子背景效果</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html{
            height: 100%;
        } 
        body{
            height: 100%;
            background: #fff;
        }
        canvas{
            display: block;
            width: 100%;
            height: 100%;
        }
        .content{
            width: 100%;
            position: absolute;
            top: 50%;
            text-align: center;
            color: #333;
        }
    </style>
</head>
<body>
    <canvas id="canvas"></canvas>
    <div class="content">
        <h1>粒子背景效果</h1>
        <p>帧数: <span>0</span></p>
    </div>

    <script src="index.js"></script>
</body>
</html>